package zhihui.mobile.ui.shop.list;

import java.util.List;

import zhihui.mobile.bean.shop.SpuInfo;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/8/2 0002.
 */

public interface IShopListContract
{
    interface IShopListView extends IView
    {
        void initView(List<SpuInfo> list);

        void refreshList(List<SpuInfo> list);

        void onRefreshComplete();

        void updateSearchText(String text);

        void updateCartNum(int num);

        void addShopList(List<SpuInfo> list);
    }

    interface IShopListPresenter extends IPresenter
    {
        void initData();

        void refresh(String descType, String desc);

        void loadmore(String descType, String desc);

        void searchRefresh(String descType, String desc);

        void searchLoadmore(String descType, String desc);

        void initSearchText();

        void search(String text);
    }
}
